#include <guichan.hpp>
#include <iostream>

#include "php.h"
#include "ext/standard/info.h"

/* Define Extension Properties */
#define PHP_GUICHAN_EXTNAME    "exttest"
#define PHP_GUICHAN_EXTVER    "1.0"

PHP_FUNCTION(helloexttest);

PHP_MINIT_FUNCTION(exttest);
PHP_MSHUTDOWN_FUNCTION(exttest);
PHP_RINIT_FUNCTION(exttest);
PHP_RSHUTDOWN_FUNCTION(exttest);
PHP_MINFO_FUNCTION(exttest);

ZEND_BEGIN_MODULE_GLOBALS(exttest)

		long show_sdl_errors;
	
ZEND_END_MODULE_GLOBALS(exttest)

ZEND_DECLARE_MODULE_GLOBALS(exttest)

#ifdef ZTS
#include "TSRM/TSRM.h"
#define MYGLOBALS(v)    TSRMG(exttest_globals_id, zend_exttest_globals*, v)
#else
#define MYGLOBALS(v)    (exttest_globals.v)
#endif


extern zend_module_entry exttest_module_entry;

#define exttest_module_ptr &exttest_module_entry